package ee.maoinvest.backend.model.data;

import java.io.Serializable;
import java.sql.Date;

public class Substation implements Serializable
{
	/**
	 * 
	 */
	private static final long serialVersionUID = -4661500201398507696L;
	
	private int substationID; 		// SMALLINT				 NOT NULL DEFAULT nextval('seq_substationID')
	private String substationName; 	// VARCHAR(100)			 d_nameIsRequired
	private Date dateInserted;		// java.util.Date	 	 d_dateIsRequired
	private Date dateUpdated;		// java.util.Date		 d_dateIsNotRequired
	private boolean isInUse; 		// BOOLEAN 				 DEFAULT false
	private boolean isWrittenOff; 	// BOOLEAN 				 DEFAULT false
	private Date dateOfWriteOff; 	// java.sql.Date		 d_dateIsNotRequired
	
	
	
	public int getSubstationID() 
	{
		return substationID;
	}
	
	public void setSubstationID(int substationID) 
	{
		this.substationID = substationID;
	}
	
	public String getSubstationName() 
	{
		return substationName;
	}
	
	public void setSubstationName(String substationName) 
	{
		this.substationName = substationName;
	}
	
	public Date getDateInserted()
	{
		return dateInserted;
	}

	public void setDateInserted(Date dateInserted) 
	{
		this.dateInserted = dateInserted;
	}
	
	public Date getDateUpdated()
	{
		return dateUpdated;
	}

	public void setDateUpdated(Date dateUpdated) 
	{
		this.dateUpdated = dateUpdated;
	}
	
	public boolean getIsInUse() 
	{
		return isInUse;
	}
	
	public void setIsInUse(boolean isInUse) 
	{
		this.isInUse = isInUse;
	}
	
	public boolean getIsWrittenOff() 
	{
		return isWrittenOff;
	}
	
	public void setIsWrittenOff(boolean isWrittenOff) 
	{
		this.isWrittenOff = isWrittenOff;
	}
	
	public Date getDateOfWriteOff() 
	{
		return dateOfWriteOff;
	}
	
	public void setDateOfWriteOff(Date dateOfWriteOff) 
	{
		this.dateOfWriteOff = dateOfWriteOff;
	}
}
